// To parse this JSON data, do
//
//     final userDeviceListModel = userDeviceListModelFromJson(jsonString);

import 'dart:convert';

UserDeviceListModel userDeviceListModelFromJson(String str) => UserDeviceListModel.fromJson(json.decode(str));

String userDeviceListModelToJson(UserDeviceListModel data) => json.encode(data.toJson());

class UserDeviceListModel {
  UserDeviceListModel({
    this.devList,
    this.bookingStatus,
  });

  List<DevList>? devList;
  bool? bookingStatus;

  factory UserDeviceListModel.fromJson(Map<String, dynamic> json) => UserDeviceListModel(
        devList: List<DevList>.from(json["devList"].map((x) => DevList.fromJson(x))),
        bookingStatus: json["bookingStatus"],
      );

  Map<String, dynamic> toJson() => {
        "devList": List<dynamic>.from(devList==null?[]:devList!.map((x) => x.toJson())),
        "bookingStatus": bookingStatus,
      };
}

class DevList {
  DevList({
    this.id,
    this.userId,
    this.devId,
    this.devSn,
    this.isActive,
    this.isDefault,
    this.status,
    this.createTime,
    this.createBy,
    this.updateTime,
    this.updateBy,
  });

  int? id;
  int? userId;
  String? devId;
  dynamic devSn;
  int? isActive;
  int? isDefault;
  int? status;
  int? createTime;
  dynamic createBy;
  dynamic updateTime;
  dynamic updateBy;

  factory DevList.fromJson(Map<String, dynamic> json) => DevList(
        id: json["id"],
        userId: json["userId"],
        devId: json["devId"],
        devSn: json["devSn"],
        isActive: json["isActive"],
        isDefault: json["isDefault"],
        status: json["status"],
        createTime: json["createTime"],
        createBy: json["createBy"],
        updateTime: json["updateTime"],
        updateBy: json["updateBy"],
      );

  Map<String, dynamic> toJson() => {
        "id": id,
        "userId": userId,
        "devId": devId,
        "devSn": devSn,
        "isActive": isActive,
        "isDefault": isDefault,
        "status": status,
        "createTime": createTime,
        "createBy": createBy,
        "updateTime": updateTime,
        "updateBy": updateBy,
      };
}
